<?php defined('BASEPATH') OR exit('No direct script access allowed');   ?><head>
    <title><?php echo $title; ?></title>
    <?php $this->load->module('admin/index/page_header');?>
</head>
<div class="nav">
    <ul>
        <li class="current">
            <a  href="<?php echo site_url('weixin/actioninfo_prize')?>">返回</a>
        </li>
    </ul>
</div>
<form runat="server" name="example" method="post" action="<?php echo site_url($index_url); ?>">
<p>
在此处添加奖品
</p>
<table style="line-height:39px;">
<?php foreach($list as $items=>$val){ ?>
    <tr>
    	<td>奖品名称</td><td><input type="text" name="pname" width="355px;" value="<?php echo $val->pname ?>" />设置未中奖项值为：谢谢参与</td>
    </tr>
    <tr>
    	<td>奖品数量</td>
        <td><input type="text" name="pnum" width="355px;" value="<?php echo $val->pnumb ?>" /></td>
    </tr>
    <tr>
    	<td>所属活动</td>
        <td><select name="selactiv" style="width:128px;"><?php foreach($arrlist as $list){ ?><option <?php if ($list->aid==$val->aid) echo "selected='selected'";?> value="<?php echo $list->aid; ?>"><?php echo $list->aname; }?></option></select> 不要修改此项</td>
    </tr>
    </tr>    
    <tr>
    	<td>中奖几率</td>
        <td><input type="text" name="pchan" width="355px;" value="<?php echo $val->pchange ?>" />只要填写数字</td>
    </tr>
    <tr>
    	<td>奖品类型</td>
        <td><select name="ptype" style="width:128px;"><option value="虚拟">虚拟</option><option value="实物">实物</option></select>
		<?php if($val->ptype==1){ echo "虚拟";}else{ echo "实物";} ?></td>
    </tr>
<?php }?>
</table>
<br />
<input type="submit" name="endadd" id="endadd" value="提交内容" /> (提交快捷键: Ctrl + Enter)
</form>



